package com.diandian.backend.dingding.data.param;

import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;

public class DingdingStaffPullParam implements Serializable {

	private String appKey;
	private String appSecret;
	private String belong;

	public void check(){
		if(this.appKey == null || "".equals(this.appKey) || this.appSecret == null || "".equals(this.appSecret)){
			throw new DefaultException("密钥缺失");
		}
		if(this.belong == null || "".equals(this.belong)){
			throw new DefaultException("归属标识缺失");
		}
	}

	public String getAppKey() {
		return appKey;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getBelong() {
		return belong;
	}

	public void setBelong(String belong) {
		this.belong = belong;
	}
}
